package com.woniuxy.food.client.foodtypeclient;

import com.woniuxy.food.client.param.SearchFoodTypeByConditionParam;
import com.woniuxy.food.client.result.FoodTypeClientDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import result.Result;

import java.util.List;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "foodTypeQueryClient",name="food")
public interface FoodTypeQueryClient {

    @GetMapping("/searchFoodTypeByCondition")
    public Result<List<FoodTypeClientDto>> searchFoodTypeByCondition(@SpringQueryMap SearchFoodTypeByConditionParam param);

}
